
/*
 * @Description: 
 * @Author: Aroma
 * @Date: 2024-09-18 15:38:42
 * @LastEditors: Aroma
 * @LastEditTime: 2024-09-29 17:04:55
 * @别瞎看: 你个无脑牛马
 */
class Student{
    //属性
    private String name;
    private int age;
    private String gender;
    //默认|无参构造器
    public Student(){
        System.out.println("调用无参构造器");
    }
    public Student(String name,int age,String gender){
        this.name=name;
        this.age=age;
        this.gender=gender;
    }
    //get|set方法
    public String getName(){
        return name;
    }
    public void setName(String name) {
        this.name = name;
    }
    public int getAge(){
        return age;
    }
    public void setAge(int age) {
        this.age = age;
    }    
    public String getGender(){
        return gender;
    }
    public void setGender(String gender) {
        this.gender = gender;
    }
}
